package com.base.caselib.bean;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

/**
 * Created by weikailiang on 2019/10/14.
 */

public class CaseSaveBean implements Serializable {
    private String formId;//主表ID
    private String formMainValue;//主表名
    private String mainId;
    private String sonTable;

    public String getSonTable() {
        return sonTable;
    }

    public void setSonTable(String sonTable) {
        this.sonTable = sonTable;
    }

    public String getMainId() {
        return mainId;
    }

    public void setMainId(String mainId) {
        this.mainId = mainId;
    }

    private String id;
    private List<CommenBean> mainDatas;//字表


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    private Map<String,List<List<CommenBeanToUp>>> sonDatas;//字表数据

    public String getFormId() {
        return formId;
    }

    public void setFormId(String formId) {
        this.formId = formId;
    }

    public String getFormMainValue() {
        return formMainValue;
    }

    public void setFormMainValue(String formMainValue) {
        this.formMainValue = formMainValue;
    }


    public List<CommenBean> getMainDatas() {
        return mainDatas;
    }

    public void setMainDatas(List<CommenBean> mainDatas) {
        this.mainDatas = mainDatas;
    }

    public Map<String, List<List<CommenBeanToUp>>> getSonDatas() {
        return sonDatas;
    }

    public void setSonDatas(Map<String, List<List<CommenBeanToUp>>> sonDatas) {
        this.sonDatas = sonDatas;
    }


    public static class CommenBean{
        private String conType;
        private String fieldSave;
        private String rowLabel;
        private String validate;
        private String value;

        public String getConType() {
            return conType;
        }

        public void setConType(String conType) {
            this.conType = conType;
        }

        public String getFieldSave() {
            return fieldSave;
        }

        public void setFieldSave(String fieldSave) {
            this.fieldSave = fieldSave;
        }

        public String getRowLabel() {
            return rowLabel;
        }

        public void setRowLabel(String rowLabel) {
            this.rowLabel = rowLabel;
        }

        public String getValidate() {
            return validate;
        }

        public void setValidate(String validate) {
            this.validate = validate;
        }

        public String getValue() {
            return value;
        }

        public void setValue(String value) {
            this.value = value;
        }

        @Override
        public String toString() {
            return rowLabel;
        }
    }
    public static class CommenBeanToUp {
        //控件类型
        private String conType;
        //存入字段
        private String fieldSave;
        //值
        private String value;

        public String getConType() {
            return conType;
        }

        public void setConType(String conType) {
            this.conType = conType;
        }

        public String getFieldSave() {
            return fieldSave;
        }

        public void setFieldSave(String fieldSave) {
            this.fieldSave = fieldSave;
        }

        public String getValue() {
            return value;
        }

        public void setValue(String value) {
            this.value = value;
        }
    }

    public static class FileInfo{
        ///附件名
        private String name;
        //base64
        private String content;
        //文件类型
        private String fileType;

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getContent() {
            return content;
        }

        public void setContent(String content) {
            this.content = content;
        }

        public String getFileType() {
            return fileType;
        }

        public void setFileType(String fileType) {
            this.fileType = fileType;
        }
    }

}
